package lifei.lifei.spring.pojo;

import lombok.Data;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * @author 小李
 * @version 1.0
 * @date 2021/9/27 11:50
 */
@Data
public class Person{
    private Student stu;
    private User user;
    //普通属性
    private String name;
    private String addr;

    public Person(Student stu, User user) {
        this.stu = stu;
        this.user = user;
    }

    //对象属性
    Cat cat;
    //集合属性
    private List<String> list;
    private Set<String> set;
    private Map<String,Object> map;
    private Properties prop;

    public Person() {
    }

    public Person(Cat cat,String name, String addr) {
        this.name = name;
        this.addr = addr;
        this.cat=cat;
    }
}
